package com.project.dao;

import com.project.entity.InternInfo;

import java.util.List;

public interface InternInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(InternInfo record);

    int insertSelective(InternInfo record);

    InternInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InternInfo record);

    int updateByPrimaryKey(InternInfo record);

    //查找所有实习信息 by:WheelChen
    List<InternInfo> selectAll();

    //查找条件模糊查找实习信息 by:WheelChen
    List<InternInfo> selectByCondition(InternInfo internInfo);

    /**
     * author: WheelChen
     * date: 2017/8/3
     * function: 查找审核中的实习信息
     *
     * @param internInfo
     * @return
     */
    InternInfo selectOneBySnoAndReview(InternInfo internInfo);

    /**
     * author: WheelChen
     * date: 2017/7/27
     * function: 根据实习生id(sno)和实习单位类别查找实习信息
     *
     * @param internInfo
     * @return
     */
    InternInfo selectOneBySnoAndOragattr(InternInfo internInfo);

    /**
     * author: WheelChen
     * date: 2017/9/19
     * function: 根据实习生idList批量删除
     * 
     * @param snoList
     * @return
     */
    int deleteBatchBySnoList(List snoList);
}